package com.flyduck.vueshop.product.fallback;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.product.feign.RemoteSkuStockFeignClient;
import com.flyduck.vueshop.product.vo.RemoteSkuStockReduceReqVO;
import com.flyduck.vueshop.product.vo.RemoteSkuStockReleaseReqVO;
import com.flyduck.vueshop.product.vo.RemoteSkuStockRespVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * RemoteSkuStockFallback
 * </p>
 *
 * @author flyduck
 * @since 2024-07-15
 */
@Slf4j
@Component
public class RemoteSkuStockFallback implements RemoteSkuStockFeignClient {
    @Override
    public Result<Void> batchReduceSkuStock(List<RemoteSkuStockReduceReqVO> remoteSkuStockReduceReqVOList) {
        log.error("减库存失败");
        return Result.success();
    }

    @Override
    public Result<Void> batchReleaseSkuStock(List<RemoteSkuStockReleaseReqVO> remoteSkuStockReleaseReqVOList) {
        log.error("释放库存失败");
        return Result.success();
    }

    @Override
    public Result<RemoteSkuStockRespVO> getSkuStock(Long productId, Long skuId) {
        log.error("获取库存失败");
        return Result.success();
    }
}
